//
//  MealController.h
//  Meal Wheel
//
//  Created by Justin Dell on 7/5/08.
//  Copyright 2008 . All rights reserved.
//

/* Interacts with the GUI for the serving icons and meal buttons */

#import <Cocoa/Cocoa.h>
#import "FoodFetcher.h"


@interface MealController : NSObject {
    IBOutlet NSTextField *foodField;
    IBOutlet NSButton *one;
    IBOutlet NSButton *two;
    IBOutlet NSButton *three;
    IBOutlet NSButton *four;
    IBOutlet NSButton *five;
    IBOutlet NSButton *six;
    
    FoodFetcher *fetcher;
    
    IBOutlet NSImageView *bread1;
    IBOutlet NSImageView *bread2;
    IBOutlet NSImageView *bread3;
    IBOutlet NSImageView *bread4;
    IBOutlet NSImageView *bread5;
    
    IBOutlet NSImageView *dairy1;
    IBOutlet NSImageView *dairy2;
    IBOutlet NSImageView *dairy3;
    IBOutlet NSImageView *dairy4;
    IBOutlet NSImageView *dairy5;
    
    IBOutlet NSImageView *meat1;
    IBOutlet NSImageView *meat2;
    IBOutlet NSImageView *meat3;
    IBOutlet NSImageView *meat4;
    IBOutlet NSImageView *meat5;
    
    IBOutlet NSImageView *fruit1;
    IBOutlet NSImageView *fruit2;
    IBOutlet NSImageView *fruit3;
    IBOutlet NSImageView *fruit4;
    IBOutlet NSImageView *fruit5;
    
    IBOutlet NSImageView *veggie1;
    IBOutlet NSImageView *veggie2;
    IBOutlet NSImageView *veggie3;
    IBOutlet NSImageView *veggie4;
    IBOutlet NSImageView *veggie5;
    
    IBOutlet NSImageView *sweet1;
    IBOutlet NSImageView *sweet2;
    IBOutlet NSImageView *sweet3;
    IBOutlet NSImageView *sweet4;
}

// Add a food to the meal
-(IBAction)add:(id)sender;

// Remove foods from the meal
-(IBAction)removeOne:(id)sender;
-(IBAction)removeTwo:(id)sender;
-(IBAction)removeThree:(id)sender;
-(IBAction)removeFour:(id)sender;
-(IBAction)removeFive:(id)sender;
-(IBAction)removeSix:(id)sender;

// When removing, move remaining foods up the meal
-(void)moveUp:(int)remover;

// Display serving icons for this food
-(void)displayIcon;

// Add serving icons
-(void)addBread;
-(void)addDairy;
-(void)addMeat;
-(void)addFruit;
-(void)addVeggie;
-(void)addSweet;

// Remove serving icons
-(void)removeIcon:(string)type;
-(void)removeBread;
-(void)removeDairy;
-(void)removeMeat;
-(void)removeFruit;
-(void)removeVeggie;
-(void)removeSweet;

@end
